package top.yxqz.number3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author: 余小小
 * @date: 2023/9/12
 * @description：员工实体类--数据库中的t_ssm_emp表格对应
 */
@TableName("t_ssm_emp")
public class Emp {
    @TableId(type = IdType.AUTO)
    @TableField("emp_id")
    private Integer empId;
    @TableField("emp_name")
    private String empName;
    private Integer age;
    private String sex;
    private String email;


    public Emp() {
    }

    public Emp(Integer empId, String empName, Integer age, String sex, String email) {
        this.empId = empId;
        this.empName = empName;
        this.age = age;
        this.sex = sex;
        this.email = email;
    }

    /**
     * 获取
     *
     * @return empId
     */
    public Integer getEmpId() {
        return empId;
    }

    /**
     * 设置
     *
     * @param empId
     */
    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    /**
     * 获取
     *
     * @return empName
     */
    public String getEmpName() {
        return empName;
    }

    /**
     * 设置
     *
     * @param empName
     */
    public void setEmpName(String empName) {
        this.empName = empName;
    }

    /**
     * 获取
     *
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     *
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     *
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     *
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     *
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     *
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    public String toString() {
        return "Emp{empId = " + empId + ", empName = " + empName + ", age = " + age + ", sex = " + sex + ", email = " + email + "}";
    }
}
